package view;

import model.XML_Handler;

public class Menuitem_speichern extends Menuitem{

	public Menuitem_speichern(int x, int y, String imagepath1, String imagepath2) {
		super(x, y, imagepath1, imagepath2);
	}

	@Override
	protected void handleEnter(World world) {
		XML_Handler.getInstance().initHandler(world);
		XML_Handler.getInstance().save();
		world.getMenu().resetActive();
		world.setPaused(false);
	}

}
